package com.lznAdmin.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lznAdmin.system.entity.SysRolePermission;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SysRolePermissionMapper extends BaseMapper<SysRolePermission> {

    @Delete("Delete from sys_role_permission where role_id = #{roleId}")
    int deleteByRoleId(Long roleId);
}
